VERSION 5.00
Begin VB.Form frmBatch 
   Caption         =   "Load Batch Directory"
   ClientHeight    =   3180
   ClientLeft      =   6675
   ClientTop       =   6270
   ClientWidth     =   8490
   Icon            =   "frmBatch.frx":0000
   LinkTopic       =   "Form1"
   ScaleHeight     =   3180
   ScaleWidth      =   8490
   Begin VB.DriveListBox batchDrive 
      Height          =   315
      Left            =   240
      TabIndex        =   3
      Top             =   360
      Width           =   2055
   End
   Begin VB.DirListBox batchDir 
      Height          =   1665
      Left            =   240
      TabIndex        =   2
      Top             =   840
      Width           =   2055
   End
   Begin VB.FileListBox batchFile 
      Height          =   2040
      Left            =   2520
      Pattern         =   "*.jpg;*.bmp;*.tif;*.tga;*.gif"
      TabIndex        =   1
      Top             =   360
      Width           =   5775
   End
   Begin VB.CommandButton cmdBatch 
      Caption         =   "&Load Directory"
      Height          =   495
      Left            =   7080
      TabIndex        =   0
      Top             =   2520
      Width           =   1215
   End
End
Attribute VB_Name = "frmBatch"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit

Private Sub batchDir_Change()

batchFile.Path = batchDir.Path

End Sub


Private Sub batchDrive_Change()
batchDir.Path = batchDrive.Drive
End Sub


Private Sub cmdBatch_Click()

While (filecounter < batchFile.listCount)
batchFile.ListIndex = filecounter
frmMain.lstFullFiles.AddItem batchFile.Path & "\" & batchFile.Filename

filecounter = filecounter + 1

Wend

filecounter = 0


If frmMain.lstFullFiles.listCount = 0 Then
frmMain.cmdRemove.Enabled = False
frmMain.cmdAdd.Enabled = False
Else
frmMain.cmdRemove.Enabled = True
frmMain.cmdAdd.Enabled = True
End If

Me.Hide
frmMain.lblStatus.Caption = "Files loaded: " & frmMain.lstFullFiles.listCount
frmMain.Show


End Sub


